<script>
$(function() {
	$( "#tabs" ).tabs({
	    select: function(event, ui) {
	        var url = $.data(ui.tab, 'load.tabs');
	        if( url ) {
	            location.href = url;
	            return false;
	        }
	        return true;
	    },
	selected: 1
	});
});
</script>
<div id="tabs">
	<ul>
    <li><?php echo $this->Html->link(__('Danh sách dân tộc', true), array('controller'=>'dantocs','action' => 'index')); ?></li>
    <li><a href='#dantocadd'>Thêm dân tộc</a> </li>
	</ul>
<div class="dantocs form" id="dantocadd">
<?php echo $this->Form->create('Dantoc');?>
	<fieldset>
		<legend><?php __('Thêm dân tộc'); ?></legend>
	<?php
		echo $this->Form->input('tendantoc',array('label'=>'Dân tộc'));
	?>
    <?php echo $this->Form->end(__('Thêm mới', true));?>
	</fieldset>
</div>
